/*
* 测试initializer_list
*/

#include <initializer_list>
#include <iostream>

void printInit(std::initializer_list<int> values){
    for(auto& value: values){
        std::cout << value << std::endl;
    }
}

int main()
{
    printInit({1,2,3,4,5});

    std::initializer_list<int> values = {6,7,8,9,10};

    printInit(values);

}